package com.example.demo.controller;

import com.example.demo.entity.Student;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class lombokController {

    @RequestMapping("/getlombokData")
    public String getlombokData() {
        Student student = new Student();
        student.setName("我的学生");
        student.setAge(18);
        student.setBirthday(new Date());

        return student.toString();
    }
}
